function a(){
    return new Promise(function(resolve, reject){
        resolve();
        setTimeout(function(){
            console.log('a');
        }, 1000)
    })
}
function b(){
    console.log('b');
}
a().then(()=>{
    b()
})
